package com.baicaoyuan.web.response;

import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.List;

@Data
@ApiModel(value = "com.baicaoyuan.web.response.JzzBusinessResponse", description = "交易列表")
public class JzzBusinessResponse {

    private List<Sale> sales;
    private List<Buy> buys;
    private int page;

    @Data
    public static class Sale {
        private Long id;
        private String no;
        private Long sourceUserId;
        private String userName;
        private BigDecimal jzzNumber;
        private String payInfoJson;
        private Timestamp createTime;
        private String status;
    }

    @Data
    public static class Buy {
        private Long id;
        private String no;
        private Long targetUserId;
        private String userName;
        private BigDecimal jzzNumber;
        private Timestamp createTime;
        private String status;
    }
}
